package com.zhouyu.commonapi.resbody;

import lombok.Getter;
import lombok.Setter;

/**
 * 自定义异常
 */
@Getter
@Setter
public class BusinessException extends RuntimeException {

    private int code;

    public BusinessException(ResponseEnum responseEnum) {
        super(responseEnum.getMessage());
        this.code=responseEnum.getCode();
    }


}
